package com.itqf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/4
 * @Time: 下午2:56
 */
@Data
@ApiModel(value = "商品实体类",description = "商品实体")
public class TbItem {


    @ApiModelProperty(name = "id",example = "1",value = "编号")
    private  Long id;//
    @ApiModelProperty(name = "title",example = "小米手机",value = "商品名称")
    private String title;
    @ApiModelProperty(name = "sellPoint",example = "为发烧而生",value = "商品的卖点")
    private  String sellPoint;
    private  long price;//单位分
    private  String  images;
    private  int  cid;//类型编号
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GTM+8")//jackson   前后端都是json
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss") //用对象接收前端的传值
    private Date created;
    private Date updated;





}
